var EventListener = function(){
	this.Listeners = {};
};
EventListener.prototype = {
	checkList : function(asEventType){
		var listenter = this.Listeners[asEventType.toLowerCase()];
		listenter = this.Listeners[asEventType.toLowerCase()] = listenter? listenter : new Array();
//		alert(listenter);
		return listenter; 
	},
	appendListener : function(asEventType, funHander){
		this.checkList(asEventType);
		if(funHander != null)
			this.Listeners[asEventType.toLowerCase()].push(funHander);
	},
	deleteListener : function(asEventType, aiIndex){
		this.checkList(asEventType).splice(aiIndex,1);
	},
	insertListener : function(asEventType, aiIndex, funHander){
		var arrListeners = this.checkList(asEventType);
		arrListeners = arrListeners.insert(aiIndex, funHander);
		this.checkList(asEventType) = arrListeners;
	}
}
